﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace SPRepository.Code.Utilities
{
    public static class ValueTypeFieldUtilities
    {
        public static void SetValue<T>(SPListItem item, SPField field, object value) where T : struct
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            if (value == null)
            {
                item[field.Id] = null;
            }
            else
            {
                
            }
        } 
    }
}
